/*! \file Primitive.cpp
 *	\brief
 *
 *	created:	2009/11/17
 *	created:	17:11:2009   14:22
 *	filename: 	o:\main\libs\gd\Primitive.cpp
 *	file path:	o:\main\libs\gd
 *	file base:	Primitive
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */

#include "gd/stdafx.h"
#include "gd/Primitive.h"

#include "gd/IndexBuffer.h"
#include "gd/VertexBuffer.h"

namespace tt{
namespace gd{

void Primitive::apply( DeviceContext* deviceContext )
{
	onApply(deviceContext);
}

void Primitive::onApply( DeviceContext* deviceContext )
{
	m_indexBuffer->apply(deviceContext);
	m_vertexBuffer->apply(deviceContext);
}

} //namespace gd
} //namespace tt
